package com.gjy.mysql.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-11-18 11:09:37
 */
public interface TypeHandler<T> {

    void setParameter(PreparedStatement ps, int i, T parameter, int sqlType);

    T getResult(ResultSet rs, String columnName);

    T getResult(ResultSet rs, Integer columnIndex);
}
